package com.scalesoft.artsync.frontend.view;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;

public class ProgressDialogView extends JFrame {

	private JLabel labelMessage;
	private JProgressBar progressBar;
	private JButton buttonCancel;
	
	public ProgressDialogView() {
		super();
		setBounds(100, 100, 300, 200);
		
		JPanel panel = new JPanel();
		panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
		labelMessage = new JLabel("Message");
		progressBar = new JProgressBar();
		buttonCancel = new JButton();
		buttonCancel.setText("Cancel");
		
		panel.add(labelMessage);
		panel.add(progressBar);
		panel.add(buttonCancel);
		panel.setBorder(BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
		getContentPane().add(panel);
		setUndecorated(true);
		pack();
	}

	public JLabel getLabelMessage() {
		return labelMessage;
	}

	public JProgressBar getProgressBar() {
		return progressBar;
	}

	public JButton getButtonCancel() {
		return buttonCancel;
	}
	
}
